<!DOCTYPE html>

<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div id="app">
        v-text:<span v-text="hello"></span> <br/>
        v-html:<span v-html="hello"></span>
    </div>
    <script src="../node_modules/vue/dist/vue.js"></script>
    <script type="text/javascript">
        var vm = new Vue({
                el:"#app",
                data:{
                    hello: "<h2>大家好</h2>"
                },

            })
    </script>
</body>
</html>